<div id="loginModule" class="loginModule">
<? if ($this->auth==false){ ?>
	<div style="color:#ff0000"><?=$this->errorString ?></div>
	<form action="<?=$this->url ?>" method="post">
		<div>
			<span class="label">Login:</span>
			<input type="text" id="login" name="login"/>
		</div>
		<div>
			<span class="label">Password:</span>
			<input type="password" id="password" name="password"/>
		</div>
		<div>
			<span class="label" />
			<input type="submit" value="Login"/>
		</div>
	</form>
<? }else{ ?>
	<div>Wellcome <?=$this->login ?>!</div>
	<div><a href="<?=$this->logoutUrl ?>">Log out</a></div>
<? } ?>
</div>